package cn.com.ctbri.geomonitor.model;

import java.io.Serializable;

public class Flow implements Serializable {
    private String flowId;

    private String flowMaterial;

    private static final long serialVersionUID = 1L;

    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId == null ? null : flowId.trim();
    }

    public String getFlowMaterial() {
        return flowMaterial;
    }

    public void setFlowMaterial(String flowMaterial) {
        this.flowMaterial = flowMaterial == null ? null : flowMaterial.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Flow other = (Flow) that;
        return (this.getFlowId() == null ? other.getFlowId() == null : this.getFlowId().equals(other.getFlowId()))
            && (this.getFlowMaterial() == null ? other.getFlowMaterial() == null : this.getFlowMaterial().equals(other.getFlowMaterial()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFlowId() == null) ? 0 : getFlowId().hashCode());
        result = prime * result + ((getFlowMaterial() == null) ? 0 : getFlowMaterial().hashCode());
        return result;
    }
}